<template>
  <svg :style="{ width, height }">
    <use :xlink:href="prefix + 'one'"></use>
  </svg>
</template>

<script setup lang="ts">
defineProps({
  // xlink:href属性值前缀
  prefix: {
    type: String,
    default: '#icon-',
  },
  name: String,
  color: {
    type: String,
    default: '',
  },
  //svg宽度
  width: {
    type: String,
    default: '16px',
  },
  //svg高度
  height: {
    type: String,
    default: '16px',
  },
})
console.log(name)
</script>

<style scoped>
</style>